<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>:input | jQuery API 中文手册</title>
<meta name="author" content="jQuery 中文手册 - hemin.cn/jq/">
<meta name="description" content="匹配所有 input, textarea, select 和 button 元素 - jQuery API 中文手册">
<meta name="keywords" content="jquery,chm,手册,在线,api">
<link type="image/x-icon" href="http://hemin.cn/jq/img/favicon.ico" rel="shortcut icon">
<link type="text/css" rel="stylesheet" href="static/css/style.css">
</head>
<body id="split">
<div id='left' class='dtree'>
  <p style="text-align:center">
    <input type="text" name="query" id="query" placeholder="请输入关键字">
    <!--<input type="button" id="butsoso" value="搜索" />--></p>
  <p style="margin:7px 0; text-align:center"><a href="javascript:void(0)" id="openAll">全部展开</a> | <a href="javascript:void(0)" id="closeAll">全部折叠 </a> | <a href="index.html">速查表</a></p>
	<div id="menu">
    
    </div>
</div>
<div id="content" class="a2">
  <div rel="input">
    <h2><span>返回值:Array&lt;Element(s)&gt;</span>:input</h2>
    <h3><em>V1.0</em>概述</h3>
    <div class="desc">
      <p>匹配所有 input, textarea, select 和 button 元素</p>
      <div class="longdesc">
        <p></p>
      </div>
    </div>
    <div class="example">
      <h3>示例</h3>
      <span id="f_ad2"></span>
      <h4>描述:</h4>
      <p>查找所有的input元素，下面这些元素都会被匹配到。</p>
      <h5>HTML 代码:</h5>
      <pre><code>&lt;form&gt;
    &lt;input type="button" value="Input Button"/&gt;
    &lt;input type="checkbox" /&gt;

    &lt;input type="file" /&gt;
    &lt;input type="hidden" /&gt;
    &lt;input type="image" /&gt;

    &lt;input type="password" /&gt;
    &lt;input type="radio" /&gt;
    &lt;input type="reset" /&gt;

    &lt;input type="submit" /&gt;
    &lt;input type="text" /&gt;
    &lt;select&gt;&lt;option&gt;Option&lt;/option&gt;&lt;/select&gt;

    &lt;textarea&gt;&lt;/textarea&gt;
    &lt;button&gt;Button&lt;/button&gt;

&lt;/form&gt;</code></pre>
      <h5>jQuery 代码:</h5>
      <pre><code>$(":input")</code></pre>
      <h5>结果:</h5>
      <pre><code>[ 
    &lt;input type="button" value="Input Button"/&gt;,
    &lt;input type="checkbox" /&gt;,

    &lt;input type="file" /&gt;,
    &lt;input type="hidden" /&gt;,
    &lt;input type="image" /&gt;,

    &lt;input type="password" /&gt;,
    &lt;input type="radio" /&gt;,
    &lt;input type="reset" /&gt;,

    &lt;input type="submit" /&gt;,
    &lt;input type="text" /&gt;,
    &lt;select&gt;&lt;option&gt;Option&lt;/option&gt;&lt;/select&gt;,

    &lt;textarea&gt;&lt;/textarea&gt;,
    &lt;button&gt;Button&lt;/button&gt;,
 ]</code></pre>
    </div>
  </div>

</div>
</body>
<script type="text/javascript" src="static/js/jquery.min.js"></script>
<script type="text/javascript" src="static/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="static/js/dtree.js"></script>
<script type="text/javascript" src="static/js/js.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?27646e8f048a16e17f027842e6bdb8f0";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</html>